import request from '@/utils/request'

//名单分页列表
export function getBlackPageList(data) {
	return request({
		method: 'get',
		url: 'tbSysBlack/queryPageList',
		headers: {
			userButton: '797bfaff047f4cf5a8d9334c09d5ea49'
		},
		params: data
	})
}

//添加名单
export function addedBlack(data) {
	return request({
		method: 'post',
		url: 'tbSysBlack/add',
		headers: {
			userButton: '02dd859a433647b8bee94488efc2c707'
		},
		data
	})
}

//删除名单
export function deleteBlack(id) {
	return request({
		method: 'get',
		url: 'tbSysBlack/delete/' + id,
		headers: {
			userButton: '7d956a56648f4e92b96b97f0f3363df1'
		},
	})
}

//修改名单
export function updateBlack(data) {
	return request({
		method: 'post',
		url: 'tbSysBlack/update',
		headers: {
			userButton: 'eaaf5a08caa04031be7af509c0e23526'
		},
		data,
	})
}

//名单详情
export function blackDetail(id) {
	return request({
		method: 'get',
		url: 'tbSysBlack/query/' + id,
		headers: {
			userButton: '8ae99050af0f4fd98e19797a36748e3a'
		},
	})
}